package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @author 刘付磊
 * @date 2021/11/17 0017
 */
public interface MovementApi {
    //发布动态
    void publish(Movement movement);

    //根据用户id，查询此用户发布的动态数据列表
    PageResult findAll(Long userId, Integer page, Integer pagesize);

    List<Movement> findFriendMovements(Integer page, Integer pagesize, Long userId);


    List<Movement> randomMovements(Integer pagesize);


    List<Movement> findMovementsByPids(List<Long> collect);

    Movement findById(String movementId);
}
